package com.zx.centers.socketservice.dto;

import java.util.List;

public class IMMessage {
    // 应用ID
    private String appId;
    // 版本号
    private String version;
    // 用户ID
    private IMUser sender;
    // 消息类型 0:登陆 1：文字消息
    private String msgType;
    // 接收方
    private IMUser receiver;
    // 消息内容
    private String msg;

    private String loginPwd;

    private Boolean result;

    private List<IMUser> friends;

    public IMMessage(String appId, String version, IMUser sender, String msgType, IMUser receiver, String msg, String loginPwd, List<IMUser> friends) {
        super();
        this.appId = appId;
        this.version = version;
        this.sender = sender;
        this.msgType = msgType;
        this.receiver = receiver;
        this.msg = msg;
        this.loginPwd = loginPwd;
        this.friends = friends;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public IMUser getSender() {
        return sender;
    }

    public void setSender(IMUser sender) {
        this.sender = sender;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public IMUser getReceiver() {
        return receiver;
    }

    public void setReceiver(IMUser receiver) {
        this.receiver = receiver;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getLoginPwd() {
        return loginPwd;
    }

    public void setLoginPwd(String loginPwd) {
        this.loginPwd = loginPwd;
    }

    public List<IMUser> getFriends() {
        return friends;
    }

    public void setFriends(List<IMUser> friends) {
        this.friends = friends;
    }

    public Boolean getResult() {
        return result;
    }

    public void setResult(Boolean result) {
        this.result = result;
    }

    @Override
    public String toString() {
        return "IMMessage [appId=" + appId + ", version=" + version + ", sender=" + sender + ", msgType=" + msgType + ", receiver=" + receiver + ", msg=" + msg + ", loginPwd=" + loginPwd
                + ", friends=" + friends + "]";
    }

}
